package com.collaboration.electron.services;

import com.collaboration.electron.dao.BrandRepository;
import com.collaboration.electron.dao.ClassificationRepository;
import com.collaboration.electron.entities.Brand;
import com.collaboration.electron.entities.Classification;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lydia
 * @param
 * @return 无
 */

@Service
public class ClassificationService {

    @Autowired
    ClassificationRepository classificationRepository;

    public List<Classification> getAll(){

        return classificationRepository.findAll();
    }

    public Classification save(Classification classification){
        return classificationRepository.save(classification);
    }
}
